import type { CustomerServiceDetail } from '@/types/api'

interface FetchCustomerServiceDetailAPIResData {
  code: number
  msg: string
  time: string
  data: CustomerServiceDetail
}

interface FetchCustomerServiceDetailAPIParams {
  id: string
}

export function fetchCustomerServiceDetailAPI(params: FetchCustomerServiceDetailAPIParams, token: string) {
  return httpInstance.get<FetchCustomerServiceDetailAPIResData, FetchCustomerServiceDetailAPIParams>(
    '/api/notice/helpcenterdetail',
    { params, headers: { token } },
  )
}
